/*
 * @description:
 * @version:
 * @Author: 王治飞
 * @Date: 2023-08-16 15:35:49
 * @LastEditors: 王治飞
 * @LastEditTime: 2023-08-17 09:22:56
 */
import React from 'react'
import { Navigate } from "react-router-dom"


const Home = React.lazy(()=>import("@/views/home"))
const Detail = React.lazy(()=>import("@/views/detail"))

const routes = [
  {
    path:"/",
    element: <Navigate to="/home"></Navigate>
  },
  {
    path:'/home',
    element: <Home></Home>
  },
  {
    path:'/detail',
    element: <Detail></Detail>
  }
]

export default  routes
